package com.Jano.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**如果到的是sql下的包(java.sql.Date)，get操作时封装的结果为null、put/post操作时会抛415异常*/
/**
 * description:timezone = "GTM+8"北京时间<br>
 * date: 2022/7/12 9:52 AM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
@Data
public class Invitation {
    Integer id;
    String title;
    String summary;
    String author;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createDate;
}
